import React from 'react';
import SubMenu from './SubMenu';

const SubMenuWrapper = props => {
    const {
        location: { pathname },
        children
    } = props;
    return (
        <>
            <SubMenu path={pathname} />
            {children}
        </>
    );
};

export default SubMenuWrapper;
